package com.mju.exception;

import org.springframework.security.core.AuthenticationException;

public class ServiceException extends AuthenticationException{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 3662216028135320509L;
	private int code=1000;//默认统一异常代码
	
	public ServiceException(String msg) {		
		super(msg);
	}
	
	public ServiceException(int code,String msg) {
		super(msg);	
		this.setCode(code);
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

}
